<?php
	session_start();
?>
<?php
if (!isset($_SESSION['idUsuario']) OR !isset($_SESSION['loginUsuario'])) {
	session_destroy();
	header("Location: http://www.inaldoimoveis.com.br/admin/login"); 
	exit;	
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Inaldo Imóveis - área restrita</title>
<link href="../css/style.css" rel="stylesheet" type="text/css" />
<link href="../css/banner.css" rel="stylesheet" media="screen" />
<script src="../js/jquery-1-4-3-min.js" type="text/javascript"></script>

<script type="text/javascript">
jQuery.noConflict();

jQuery(document).ready(function($) {

	$("#menu-2").css("background-color", "#fff");		

});

</script>

<script type="text/javascript">
function banners() {
	location.href = "banners";
}
</script>

</head>

<body>

<?php
	include("../cabecalho.php");
?>

<div id="secao-atual">
	<p>Banners</p>
    <form>
    	<input type="button" name="pesquisar" value="pesquisar" class="botao" id="pesquisar" onclick="banners()"/>        
    </form>
</div>

<div id="mensagem">
	<?php include("cadastrar_banner.php")?>
</div>

<div id="formulario">

  <form name="form-novo" id="form-novo" action="" method="post" enctype="multipart/form-data">
  <fieldset>
      
      <legend>Banners</legend>
      
      <div id="logradouro_campo">
          <label>Arquivo<p class="logradouro_mensagem">Informe o arquivo</p></label>
          <input type="file" name="banner[]" class="arquivo" size="60"/>
      </div>
     
 
  </fieldset>
  <input type="button" value="Cancelar" class="botao-cancelar" id="cancelar" onclick="banners()"/>
  <input type="submit" value="Salvar" class="botao-salvar" id="executar" name="executar"/>
</form>

</div>


<?php
	include("../rodape.php");
?>

</body>
</html>